package com.yuhanginfo.modules.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yuhanginfo.common.persistence.Page;
import com.yuhanginfo.common.service.WebCrudService;
import com.yuhanginfo.modules.web.dao.WebGoodsCombStoreDao;
import com.yuhanginfo.modules.web.entity.WebGoodsCombStore;
import com.yuhanginfo.modules.web.entity.WebGoodsCombo;
import com.yuhanginfo.modules.web.entity.WebStore;

/**
 * 套餐门店Service
 * @author lvls
 * @version 2017-11-15
 */
@Service
@Transactional(readOnly = true)
public class WebGoodsCombStoreService extends WebCrudService<WebGoodsCombStoreDao, WebGoodsCombStore> {

	@Autowired
	private WebGoodsCombStoreDao webGoodsCombStoreDao;
	public WebGoodsCombStore get(String id) {
		return super.get(id);
	}
	
	public List<WebGoodsCombStore> findList(WebGoodsCombStore goodsCombStore) {
		return super.findList(goodsCombStore);
	}
	
	public Page<WebGoodsCombStore> findPage(Page<WebGoodsCombStore> page, WebGoodsCombStore goodsCombStore) {
		return super.findPage(page, goodsCombStore);
	}
	
	@Transactional(readOnly = false)
	public void save(WebGoodsCombStore goodsCombStore) {
		super.save(goodsCombStore);
	}
	
	@Transactional(readOnly = false)
	public void delete(WebGoodsCombStore goodsCombStore) {
		super.delete(goodsCombStore);
	}

	public List<WebGoodsCombStore> selectByGoodsComboCodeAndStoreCode(WebGoodsCombStore combStore) {
		return webGoodsCombStoreDao.selectByGoodsComboCodeAndStoreCode(combStore);
	}

	public List<WebStore> getStoreByGoodsCombo(WebGoodsCombo getWebGoodsComb) {
		return webGoodsCombStoreDao.getStoreByGoodsCombo(getWebGoodsComb);
	}
	
}